package com.labManage.dao;

import com.labManage.entity.Permition;

import java.util.List;

public interface PermitionDao {
    public List<Permition> selectParentPers();

    public List<Permition> selectAllPermition();

    int selectCountChildByPerimitionParentId(Long permitionId);

    int deletePermitionInfoByPermitionId(Long permitionId);

    int insertPermitionInfo(Permition permition);

    Permition selectParentPermitionByChildPermitionId(Long childPermitionId);

    int updatePermitionInfoById(Permition permition);

    List<Permition> getPermitonsByUserId(Long userId);
}
